package foo.bar.helloworld;

import java.awt.image.BufferedImage;

public class ImageTester {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		BufferedImage image = ImageUtil.loadImage("src\\images\\p28d-nK33Xs.jpg");
		
		ImageUtil.saveImage(ImageUtil.makeImage(ImageUtil.getBrightnessMatrix(image, ImageUtil.BrightnessType.SimpleBrightness)), "src\\images\\0.png");
		
		BufferedImage graySimple = ImageUtil.makeGray(image, ImageUtil.BrightnessType.SimpleBrightness);
		BufferedImage grayMedium = ImageUtil.makeGray(image, ImageUtil.BrightnessType.MediumBrightness);
		BufferedImage grayComplex = ImageUtil.makeGray(image, ImageUtil.BrightnessType.ComplexBrightness);
		
		ImageUtil.saveImage(ImageUtil.differenceBetweenInt(graySimple, grayComplex, 10), "src\\images\\medium_complex_DIFF.png");
		ImageUtil.saveImage(ImageUtil.differenceBetweenInt(graySimple, image, 10), "src\\images\\original_simple_DIFF.png");
		
		ImageUtil.saveImage(ImageUtil.differenceBetweenRGB(ImageUtil.differenceBetweenRGB(graySimple, image, 10), image, 10), "src\\images\\RGB_DIFF.png");
		
		ImageUtil.saveImage(grayMedium, "src\\images\\gray.png");
	}

}
